﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ListDownloadSubmittedDocsScreen.aspx.cs" Inherits="METU_CMT.ListDownloadSubmittedDocsScreen" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Table ID="Table1" runat="server" Width="100%" HorizontalAlign="Left" CssClass="chp-grid" style="font-size: 15px; margin-top:50px;">
        <asp:TableRow ID="TableRow1" runat="server">
            <asp:TableCell ID="TableCell2" runat="server" HorizontalAlign="Left">
                <asp:GridView runat="server" Width="80%" ID="dtgSubmittedDocuments" AutoGenerateColumns="false"
                    ShowHeaderWhenEmpty="true" CssClass="chp-grid">
                    <Columns>
                        <asp:BoundField DataField="TeamName" HeaderText="Team Name" />
                        <asp:TemplateField HeaderText="Document Name">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="lnkBtnDownload" OnClick="OnLnkBtnDownloadClicked"
                                    Text='<%# Bind("DocumentName") %>'></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="UploadTime" HeaderText="Upload Time" />
                        <asp:TemplateField HeaderText="Actions">
                            <ItemTemplate>
                                <asp:HiddenField runat="server" ID="hfId" Value='<%# Bind("TeamId") %>' />
                                <asp:LinkButton runat="server" ID="lnkBtnUpload" OnClick="OnLnkBtnUploadClicked"
                                    Text="Upload"></asp:LinkButton>
                                <asp:FileUpload runat="server" ID="fuDocumentUpload" CssClass="chp-file-upload"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <br />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow2" runat="server">
            <asp:TableCell ID="TableCell3" runat="server" HorizontalAlign="Left">
                <asp:LinkButton runat="server" ID="lnkBtnDownloadAllDocs" OnClick="OnLnkBtnDownloadAllDocsClicked"
                    Text="Download All Documents"></asp:LinkButton>
                <br />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow3" runat="server">
            <asp:TableCell ID="TableCell10" runat="server" ColumnSpan="2">
                <asp:LinkButton runat="server" ID="lnkBtnDownloadSubmissionReports" OnClick="OnLnkBtnDownloadSubmissionReportsClicked"
                    Text="Download Submission Report"></asp:LinkButton>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
</asp:Content>
